Skip to content

mod_ssl: Add support for OpenSSL providers - #698

Open
minfrin wants to merge 3 commits into
apache:trunkfrom
minfrin:openssl-provider
Open

mod_ssl: Add support for OpenSSL providers#698
minfrin wants to merge 3 commits into
apache:trunkfrom
minfrin:openssl-provider

Conversation

@minfrin

@minfrin minfrin commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

across all certificates, CA certificates, CRLs and keys.

minfrin added 2 commits July 28, 2026 16:17
across all certificates, CA certificates, CRLs and keys.
@notroj

notroj commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Why add a bunch of new directives for this? It would surely be better to modify the existing directives and make them work for URIs - we could recognise either known URI schemes as we do already for SSLCertificateFile or have something more general.

@minfrin

minfrin commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Why add a bunch of new directives for this? It would surely be better to modify the existing directives and make them work for URIs - we could recognise either known URI schemes as we do already for SSLCertificateFile or have something more general.

The existing directives end in "File" or "Path" respectively, showing they are files and paths. Sneaking a URI into SSLCertificateKeyFile was always wrong, and now that we've done it it forces a lot of backwards compatibility constraints we do not want.

The kicker however is Windows, which stops us putting a URI into any directive containing File, because "c:[stuff]" is a valid URI, and also a valid File, and also a valid Path.

The URI directives are a completely clean break from the past. They can be used alongside the old directives, but old and new don't affect each other's behaviour.

In the bad old days of files and paths an admin was forced to do the manual work of isolating the certs, isolating the intermediates, isolating the keys, then putting them in files in different orders depending on whether the cert was at the front end or in the proxy. The title of "it's hard" was well earned.

In the new world an admin can still do that - or - crucially, they can point the URI at the whole Windows certificate store, and automagically the correct certificate is chosen for them, the correct intermediate cert chain is built for them, and the correct key is aligned with the correct cert.

Or on Linux they can just point at pkcs11: and have the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants